#include "timer.h"

#include <windows.h>

Timer::Timer() {
	LARGE_INTEGER freq;
	QueryPerformanceFrequency(&freq);
	frequency_ = (float)(freq.QuadPart);
}

float Timer::GetTime() const {
	LARGE_INTEGER currentTime;
	QueryPerformanceCounter(&currentTime);
	return (float)(currentTime.QuadPart) / frequency_;
}
